<?php
include("include/config.inc.php");
if(!isset($_SESSION['s_activId']))
{
  header('location:checkLogin.php');
}

$query1 = "DELETE FROM   loan 
            WHERE loanId = ".$_GET['loanId'];
$result1= mysql_query($query1);
if(!$result1)
  echo "DELETING FAILED";
else
 header("Location:loanList.php");

?>	 